const sysDao = require('../dao/sysDao');

const Response = require('../entity/http/Response');

const sysService = {
    /**
     * 获取轮播图
     */
    async getBanners() {
        return (new Response()).ok("操作成功", [
            {
                id: 1, 
                imageUrl: 'https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=800&auto=format&fit=crop', 
                linkUrl: '/pages/community/index', 
                title: '校园社区动态',
                description: '了解最新校园活动与社区资讯'
            }, {
                id: 2, 
                imageUrl: 'https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=800&auto=format&fit=crop', 
                linkUrl: '/pages/club/index', 
                title: '社团活动招新',
                description: '丰富多彩的社团等你加入'
            }, {
                id: 3, 
                imageUrl: 'https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=800&auto=format&fit=crop', 
                linkUrl: '/pages/service/index', 
                title: '校园互助服务',
                description: '便捷的校园生活服务平台'
            }, {
                id: 4, 
                imageUrl: 'https://images.unsplash.com/photo-1540317580384-e5d43867caa6?q=80&w=800&auto=format&fit=crop', 
                linkUrl: '/pages/learning/index', 
                title: '学习资源共享',
                description: '优质学习资源一站获取'
            }
        ]);
    },
};

module.exports = sysService;